package com.yjt.fresh.adpater;

import android.content.Context;
import android.view.ViewGroup;

import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter;
import com.yjt.fresh.R;
import com.yjt.fresh.bean.BeanArticle;

/**
 * Created by gxcheng on 2018/1/13.
 */

public class AdpHome extends RecyclerArrayAdapter<BeanArticle>{
    public AdpHome(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        return new HomeViewHolder(parent);
    }

    class HomeViewHolder extends BaseViewHolder<BeanArticle>{

        public HomeViewHolder(ViewGroup parent) {
            super(parent, R.layout.uc_item_article);
        }
    }

}
